using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using System;
public interface  Pitfall 
{

    //动画效果
    void AnimAction();
    //夏宫
    void Effect(GameObject gm);

}

public class Stab:Pitfall {


    //动画效果
   public void AnimAction(){



   }



    public void Effect(GameObject gm){

            if("player".Equals(gm.transform.tag)){

                Player.Instance.ReduceHP(1);
            }else{
                gm.GetComponent<FSM>().reduceHP(1);
            }
    }





}



